---
title: "Accessibility Checker Rule Help: WCAG20_Img_PresentationImgHasNonNullAlt"
---
import "../../../styles/ToolHelp.scss"
import { CodeSnippet, Tag } from "carbon-components-react";

<div className="toolHelp">
<Row>
<Column colLg={16} colMd={8} colSm={4} className="toolHead">

### Image designated as decorative has non-null text alternative

<div id="locLevel"></div>

Image designated as decorative must have a null text alternative

</Column>
</Row>
<Row>
<Column colLg={11} colMd={5} colSm={4} className="toolMain">

### Why is this important?

Roles of `presentation` and `none` on an image indicate the element is decorative and should be ignored by assistive technologies. Providing a non-null text alternative conflicts with that decorative designation.

<div id="locSnippet"></div>

### What to do

Set the `alt` attribute to an empty (or null) string (i.e., `<img alt="">`) for images with `role="presentation"` or `role="none"`.

Example:

<CodeSnippet type="single" light={true}>&lt;img src="demomovie.gif" role="presentation" alt="" /&gt;</CodeSnippet>

</Column>
<Column colLg={5} colMd={3} colSm={4} className="toolLeft">

### About this requirement

[IBM 1.1.1 Non-text content](https://www.ibm.com/able/requirements/requirements/#1_1_1)

### Who does this affect?

* Blind people using screen readers

</Column>
</Row>
</div>

export default ({ children, _frontmatter }) => (<React.Fragment>{children}</React.Fragment>)
